package com.ymx.darling.wrapper.fragment;

/**
 * @author 爱java的小于
 * @time 2022-8-27
 * @version 1.0.1
 *
 * 用来指定sql符号类型
 */
public enum SqlOperator {
    BETWEEN("BETWEEN"),
    NOT_BETWEEN("NOT BETWEEN"),
    LIKE("LIKE"),
    NOT_LIKE("NOT LIKE"),
    LIKE_LEFT("LIKE"),
    NOT_LIKE_LEFT("NOT LIKE"),
    LIKE_RIGHT("LIKE"),
    NOT_LIKE_RIGHT("NOT LIKE"),
    IS_NULL("IS NULL"),
    IS_NOT_NULL("IS NOT NULL"),
    EXISTS("EXISTS"),
    NOT_EXISTS("NOT EXISTS"),
    IN("IN"),
    NOT_IN("NOT IN"),

    GT(">"),
    GE(">="),
    LT("<"),
    LE("<="),
    EQ("="),
    NE("!="),

    AND("AND"),
    OR("OR");

    private final String value;

    SqlOperator(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }
}
